import mpUserApi from "@/api/declaration/mp/mpUserApi"
import httpRequest from "@/config/axios/httpRequest"


// 更新公众号粉丝
export const updateUser = (data) => {
  return httpRequest.put(mpUserApi.UpdateUser, data)
}

// 获得公众号粉丝
export const getUser = (id) => {
  return httpRequest.get(mpUserApi.GetUser, {params: {id}})
}

// 获得公众号粉丝分页
export const getUserPage = (query) => {
  return httpRequest.get(mpUserApi.GetUserPage, {params: query})
}

// 同步公众号粉丝
export const syncUser = (accountId) => {
  return httpRequest.post(mpUserApi.SyncUser, {accountId})
}
